/**
 * <pre>
 * -
 * Author : J.L.Zhou
 * E-Mail : 2233875735@qq.com
 * Tel : 151 1104 7708
 * Date : 2021-03-19 10:17
 * Version : 1.0
 * Copyright 2021 jlzhou.top Inc. All rights reserved.
 * Warning: this content is only for internal circulation of the company.
 *          It is forbidden to divulge it or use it for other commercial purposes.
 * </pre>
 **/
public class Person {//公开外部类的类名必须和文件名一致

//  String name,nickname;//企业命名规范中通常不允许同时定义多个成员变量

  /**
   * 姓名
   */
  String name;

  /**
   * 昵称
   */
  String nickname = "昵称";

  private volatile int age;

  int age1;

  public int eat(String food){
    System.out.println(name+"正在吃"+food);
    int height;
    int age;
    if(true)return 1;

    height = 170;
//    System.out.println(age);
    System.out.println(this.age);
    System.out.println(height);

  }

  public void sleep(){
    System.out.println(name);
  }

  public void study(){

  }


  public static void main(String[] args) {
    Person p = new Person();
    p.name = "张三";
    String name = p.name;
    p.eat("汉堡包");
    int a = 1;
    p(p);
    a(a);
  }

  public static void p(Person p){
//    System.out.println(name);
  }
  public static void a(int a){

  }
}

final class Student {

  private class Student1 {//内部类=内部成员类+内部匿名类

  }

}

//private class Student1  {//错误的
//
//}